Optimal. Leaf size=47 \[ \frac {F\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sec (e+f x) \sqrt {\sin (2 e+2 f x)}}{f \sqrt {d \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2694, 2653,
2720} \begin {gather*} \frac {\sqrt {\sin (2 e+2 f x)} \sec (e+f x) F\left (\left .e+f x-\frac {\pi }{4}\right |2\right )}{f \sqrt {d \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2694
Rule 2720
Rubi steps
\begin {align*} \int \frac {\sec (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx &=\frac {\sqrt {\sin (e+f x)} \int \frac {1}{\sqrt {\cos (e+f x)} \sqrt {\sin (e+f x)}} \, dx}{\sqrt {\cos (e+f x)} \sqrt {d \tan (e+f x)}}\\ &=\frac {\left (\sec (e+f x) \sqrt {\sin (2 e+2 f x)}\right ) \int \frac {1}{\sqrt {\sin (2 e+2 f x)}} \, dx}{\sqrt {d \tan (e+f x)}}\\ &=\frac {F\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sec (e+f x) \sqrt {\sin (2 e+2 f x)}}{f \sqrt {d \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.15, size = 77, normalized size = 1.64 \begin {gather*} -\frac {2 \sqrt [4]{-1} F\left (\left .i \sinh ^{-1}\left (\sqrt [4]{-1} \sqrt {\tan (e+f x)}\right )\right |-1\right ) \sec ^3(e+f x) \sqrt {\tan (e+f x)}}{f \sqrt {d \tan (e+f x)} \left (1+\tan ^2(e+f x)\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(166\) vs.
\(2(69)=138\).
time = 0.26, size = 167, normalized size = 3.55
method | result | size |
default | \(-\frac {\EllipticF \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {\sqrt {2}}{2}\right ) \sqrt {\frac {\cos \left (f x +e \right )-1}{\sin \left (f x +e \right )}}\, \sqrt {\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \left (\cos \left (f x +e \right )-1\right ) \left (\cos \left (f x +e \right )+1\right )^{2} \sqrt {2}}{f \sin \left (f x +e \right )^{2} \cos \left (f x +e \right ) \sqrt {\frac {d \sin \left (f x +e \right )}{\cos \left (f x +e \right )}}}\) | \(167\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 0.11, size = 59, normalized size = 1.26 \begin {gather*} -\frac {\sqrt {i \, d} {\rm ellipticF}\left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right ), -1\right ) + \sqrt {-i \, d} {\rm ellipticF}\left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right ), -1\right )}{d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec {\left (e + f x \right )}}{\sqrt {d \tan {\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{\cos \left (e+f\,x\right )\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________